Skip to content

Conversation

@juleswritescode
Copy link
Collaborator

@juleswritescode juleswritescode commented Dec 14, 2025

The error node handling was necessary because the grammar was too rigid for our purposes.

For completions/hover, it makes sense to have a heavily "left-balanced" grammar—whenever a statement type is recognizable by its one, two, three etc. first tokens, it should be recognized as that statement type.

Example:
alter table auth.users | should be recognized as an alter table statement, it shouldn't require a trailing alter column … or drop column … and so on.

Base automatically changed from fix/completion-issues to main December 15, 2025 08:59
Copy link
Collaborator

@psteinroe psteinroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its so nice how the code now is much more about scoring and less about parsing!

@juleswritescode juleswritescode enabled auto-merge (squash) December 15, 2025 10:28
@juleswritescode juleswritescode merged commit 7545ca7 into main Dec 15, 2025
8 checks passed
@juleswritescode juleswritescode deleted the fix/remove-error-nodes branch December 15, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants